package com.gzc.just.play.last.war.robotclient.handler;

import com.gzc.just.play.last.war.common.annotation.MessageHandler;
import com.gzc.just.play.last.war.common.handler.SimpleMessageHandler;
import io.netty.channel.ChannelHandlerContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * 机器人移动响应处理器
 */
@Component
@MessageHandler(name = "MoveResponseHandler", serverTypes = MessageHandler.ServerType.ROBOT_CLIENT)
public class MoveResponseHandler implements SimpleMessageHandler {
    
    private static final Logger log = LoggerFactory.getLogger(MoveResponseHandler.class);
    
    @Override
    public void handle(Object message, ChannelHandlerContext ctx) throws Exception {
        log.debug("Robot received move response: {}", message);
        // 处理移动响应逻辑
    }
    
    @Override
    public int getMessageId() {
        return 1003;
    }
    
    @Override
    public String getName() {
        return "MoveResponseHandler";
    }
    @Override
    public Logger getLogger() {
        return log;
    }
}